package com.fancy.learncenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by shiweiwei on 2017/12/16.
 */

public class CartoonAnswersBean implements Parcelable{

    private List<CartoonTextsBean> texts;

    protected CartoonAnswersBean(Parcel in) {
        texts = in.createTypedArrayList(CartoonTextsBean.CREATOR);
    }

    public static final Creator<CartoonAnswersBean> CREATOR = new Creator<CartoonAnswersBean>() {
        @Override
        public CartoonAnswersBean createFromParcel(Parcel in) {
            return new CartoonAnswersBean(in);
        }

        @Override
        public CartoonAnswersBean[] newArray(int size) {
            return new CartoonAnswersBean[size];
        }
    };

    public List<CartoonTextsBean> getTexts() {
        return texts;
    }

    public void setTexts(List<CartoonTextsBean> texts) {
        this.texts = texts;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(texts);
    }
}
